//
//  MLAManageVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/18.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAManageVC.h"
#import "MLAManageBrandVC.h"
#import "MLAManageAdvertVC.h"

@interface MLAManageVC ()

@end

@implementation MLAManageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configTitle:@"我的经营"];
    
    self.titlesArr = @[@"品牌",@"广告"];
    [self.tableView reloadData];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [super tableView:tableView didSelectRowAtIndexPath:indexPath];
    if (indexPath.row == 0) {
        CX_Log(@"品牌");
        MLAManageBrandVC *brandVC = [[MLAManageBrandVC alloc] init];
        [self.navigationController pushViewController:brandVC animated:YES];
    } else if (indexPath.row == 1) {
        CX_Log(@"广告");
        MLAManageAdvertVC *advertVC = [[MLAManageAdvertVC alloc] init];
        [self.navigationController pushViewController:advertVC animated:YES];
    }
}


@end
